from django.urls import path
from . import views


urlpatterns = [
    # 获取城区列表
    path("api/v1.0/areas", views.ListAreas.as_view()),
    # 发布房源、房源搜索
    path("api/v1.0/houses", views.ReleaseHouses.as_view()),
    # 上传房源图片
    path("api/v1.0/houses/<int:house_id>/images", views.UploadHouseImages.as_view()),
    # 展示用户房源列表
    path("api/v1.0/user/houses", views.ShowUserHouses.as_view()),
    # 首页房源推荐
    path("api/v1.0/houses/index", views.HotHosesView.as_view()),
    # 房屋详情页面
    path("api/v1.0/houses/<int:house_id>", views.HouseInfoView.as_view()),

]
